import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBBaseRouter/YBApplication.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/yb_chinese_text/yb_chinese_text.dart';

class YBNumberManagerSubPage extends StatelessWidget {

  final String nickName;

  final int statusNumber;

  final String telPhoneStr;
  final String wechatStr;
  final String emailStr;
  final String departStr;
  final String zhiweiStr;
  final String memberType;
  final String memberCode;

  const YBNumberManagerSubPage({Key key, this.nickName,this.statusNumber,this.telPhoneStr,this.wechatStr,this.emailStr,this.departStr,this.zhiweiStr,this.memberType,this.memberCode}) : super(key: key);


  @override
  Widget build(BuildContext context) {
     
    Widget containerWidget;
    if (statusNumber == 1) {
       containerWidget = Container(
         child: Text(
           YBChineseText.mineNoDelegateTitle??"",
           style: YBTextStyle.TextStyle99999912,
         ),
       );
    } else{
      containerWidget = Container(
        child: Text(
          YBChineseText.mineKeYiDelegateTitle??"",
          style: YBTextStyle.TextStyle99999912,
        ),
      );
    }
    // xingMingStr: xingMingStr,
    //         telPhoneStr: telPhoneStr,
    //         wechatStr: wechatStr,
    //         emailStr: emailStr,
    //         departStr: departStr,
    //         zhiweiStr: zhiweiStr,
    //
    return InkWell(
      child: Container(
        height: YBTextStyle.adapterSize48,
        color: YBColor.white,
        child: Padding(
          padding: EdgeInsets.only(left: YBTextStyle.adapterSize20,right: YBTextStyle.adapterSize20),
          child:Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Container(
                child: Text(
                  nickName??"",
                  style: YBTextStyle.TextStyle2F303314,
                ),
              ),
              containerWidget,
            ],
          ),
        ),
      ),
      onTap: () async {
        YBApplication.router.navigateTo(context, '/mine/mineQiYePersonPage/mineNumberManangerPage/mineNumberManangerEditingPage?xingMingStr=${Uri.encodeComponent(nickName)}&&telPhoneStr=$telPhoneStr&&wechatStr=$wechatStr&&emailStr=$emailStr&&departStr=${Uri.encodeComponent(departStr)}&&zhiweiStr=${Uri.encodeComponent(zhiweiStr)}&&memberCode=$memberCode&&memberType=$memberType');
      },
    );
  }
}
